//
//  NoteAnnotation.m
//  geoNotes
//
//  Created by Administrator on 6/24/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "NoteAnnotation.h"


@implementation NoteAnnotation
@synthesize coordinate,mTitle,mSubtitle,mNoteIndex;

- (NSString *)stitle{
    return mSubtitle;
}

- (NSString *)title{
    return mTitle;
}

-(id)initWithCoordinate:(CLLocationCoordinate2D) c andTitle:(NSString*) t andSubtitle:(NSString*) s andIndex:(NSUInteger) i{
    coordinate=c;
    self.mTitle=t;
    self.mSubtitle=s;
    self.mNoteIndex=i;
    NSLog(@"%f,%f",c.latitude,c.longitude);
    return self;
}
-(id)initWithCoordinate:(CLLocationCoordinate2D) c andTitle:(NSString*) t andSubtitle:(NSString*) s{
    return [self initWithCoordinate:c andTitle:t andSubtitle:s andIndex:0];
}
@end
